home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Effect library / Demo ƒ / MSG Shell ƒ / msg menus.h < prev    next >
Encoding:
Text File  |  1994-01-12  |  2.3 KB  |  98 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg menus.h
  4.  
  5. Purpose:    This is the header file for msg menus.c
  6.  
  7.  
  8. MSG Demo -- graphic effects demonstration program
  9. Copyright (C) 1992-4 Mark Pilgrim & Dave Blumenthal
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. enum
  29. {
  30.     helpMenu = 200,
  31.     crashMenu,
  32.     
  33.     appleMenu = 400,
  34.     fileMenu,
  35.     editMenu,
  36.     wipesMenu,
  37.     additionsMenu,
  38.     scrollMenu,
  39.     fluffMenu,
  40.     
  41.     aboutItem = 1,
  42.     
  43.     openItem = 1,
  44.     closeItem,
  45.     disableQuitItem = 4,
  46.     enableQuitItem,
  47.     quitItem = 7,
  48.     
  49.     undoItem = 1,
  50.     cutItem = 3,
  51.     copyItem,
  52.     pasteItem,
  53.     clearItem,
  54.     
  55.     spiralItem = 3,
  56.     caste1Item = 5,
  57.     rippleItem = 8,
  58.     dissolveItem = 9,
  59.     caste2Item = 11,
  60.     
  61.     serendipityItem = 9,
  62.     bulgeItem = 10,
  63.     splitScrollItem = 5,
  64.     scrollInItem = 6,
  65.     
  66.     repeatItem = 1,
  67.     reverseToggle,
  68.     effectsOnlyItem = 4,
  69.     effectsPlusFadesItem,
  70.     reverseEffectsPlusFadesItem,
  71.     fullScreenFadesItem,
  72.     soundToggle = 9
  73. };
  74.  
  75. extern    Boolean            gMenuEnabled;
  76. extern    MenuHandle        gAppleMenu;
  77. extern    MenuHandle        gFileMenu;
  78. extern    MenuHandle        gEditMenu;
  79. extern    MenuHandle        gWipesMenu;
  80. extern    MenuHandle        gAdditionsMenu;
  81. extern    MenuHandle        gScrollMenu;
  82. extern    MenuHandle        gFluffMenu;
  83. extern    MenuHandle        gHelpMenu;
  84. extern    MenuHandle        gCrashMenu;
  85.  
  86. void AdjustMenus(void);
  87. void HandleMenu(long mSelect);
  88. void HandleAppleMenu(int menuItem);
  89. void HandleFileMenu(int menuItem);
  90. void HandleEditMenu(int menuItem);
  91. void HandleWipesMenu(int menuItem);
  92. void HandleAdditionsMenu(int menuItem);
  93. void HandleScrollMenu(int menuItem);
  94. void HandleHelpMenu(int menuItem);
  95. void HandleFluffMenu(int menuItem);
  96. void HandleCrashMenu(int menuItem);
  97. void ReverseAllWipes(void);
  98.